import { pa } from 'element-plus/es/locales.mjs';
import { ajax } from './ajax'


// 
export const postxxxx1 = (params) => {
    return ajax.post('/xxxxxx', params);
};

// 首页信息统计接口(Index)
export const getStatistics = (params) => { // 
    return ajax.get('/etcm/index/statistics', params);
};

//  获取表格信息
export const getTableThList = (params) => { // 
    // langCode  ENG  CHN
    return ajax.get('/etcm/ui/el/data', params);
};


//文献
export const getLiteratures = (param) => {
    return ajax.get('/etcmPxTreatisePo/page', param)
}
//  Prescription ------------------------
export const getPrescriptionList = (params) => {
    return ajax.get('/etcm/prescription/page', params);
};
// 处方类型数据
export const getPresTypeList = (params) => {
    return ajax.get('/etcm/prescription/type/list', params);
};
// 处方类型数据
export const getPresDosageFormList = (params) => {
    return ajax.get('/etcm/prescription/dosageForm/list', params);
};
//处方数据下载
export const getPresciptionDownLoad = (params) => {
    return ajax.post('/etcm/prescription/download', params);
}

//搜索页不带统计图
export const getPrescriptionSearchList = (params) => {
    return ajax.get('/etcm/index/prescription', params);
};
//处方数据下载-搜索页不带统计图
export const getPresciptionSearchDownLoad = (params) => {
    return ajax.post('/etcm/index/px/download', params);
}

export const prescriptionHomeStatistic = (params) => {
    return ajax.get('/etcm/prescription/statistics', params)
}
// 获取处方基本信息分页信息
export const getPrescriptionBasic = (params) => {
    return ajax.get('/etcm/prescription/details', params);
};
//处方基本信息下载
export const downPrescriptionBasic = (params) => {
    return ajax.post('/etcm/prescription/details/download', params);
}
export const getPrescriptionCompHerb = (params) => { // Herb  ----
    return ajax.get('/etcm/prescription/herb/info', params);
};
//处方-草药信息下载
export const downPrescriptionHerb = (param) => {
    return ajax.post('/etcm/prescription/herb/download', param)
}
export const getPrescriptionCompIngr = (params) => { // Ingredient
    return ajax.get('/etcm/prescription/ingredient', params);
};


//处方-草药统计
export const getStatisticPrescriptionHerb = (param) => {
    return ajax.get('/etcm/prescription/herb/herb/statistics', param)
}

//
export const downPrescrTarget = (param) => {
    return ajax.post('/etcm/prescription/download/target', param)
}
// export const getPrescriptionCompTarget = (params) => { // Target  --TODO-1echart-
//     return ajax.get('/etcm/prescription/xxxxx', params);
// };
export const getPrescriptionCompTarget = (params) => { // Target
    return ajax.get('/etcm/prescription/target', params);
};

export const getPrescriptionRecoExpe = (params) => { // Experimental records
    return ajax.get('/etcm/prescription/experimental', params);
};

//组学信息下载
export const downPrescrExperimet = (param) => {
    return ajax.post('/etcm/prescription/download/experimental', param);
}

//处方文献
export const getliteratures = (param) => {
    return ajax.get('/etcmPxTreatisePo/page', param);
}
// Combinational landscape 
export const getPrescriptionOverall = (params) => { // Overall network  --TODO---图 
    return ajax.get('/etcm/prescription/xxxxx', params);
};
export const getPrescriptionHerbherbInteract = (params) => { // Herb-herb interactions --TODO--switch-box图    LandHerbherbInteract
    return ajax.get('/etcm/prescription/xxxxx', params);
};
export const getPrescriptionIngringrInteract = (params) => { // Ingredient-ingredient interactions  --TODO--switch-box图  LandIngringrInteract
    return ajax.get('/etcm/prescription/xxxxx', params);
};


//处方成分信息
export const getPrescriptionIngredientStatistic = (param) => {
    return ajax.get('/etcm/prescription/statistics/ingredient', param);
}

//处方target统计
export const getPrescriptopnTargetStatistic = (param) => {
    return ajax.get('/etcm/prescription/target/statistics', param);
}

export const getTargetType = (param) => {
    return ajax.get('/etcm/targetType/list', param);
}

//处方成分下载
export const downPrescrIngre = (param) => {
    return ajax.post('/etcm/prescription/download/ingredient', param);
}

//处方network
export const getPrescrNetwork = (param) => {
    return ajax.get('/etcm/prescription/network/statistics', param);
}
//network表格下载
export const downpreNetwork = (param) => {
    return ajax.post('/etcm/prescription/network/download', param)
}
// // 获取成分代谢稳定性信息   /etcm/ingrMetabolicStability/list
// export const getPrescriptionIngrMetabolicStabilityList = (params) => { // Related literatures
//     return ajax.get('/etcm/ingrMetabolicStability/list', params);
// };
// // 获取成分半衰期信息  /etcm/ingr/halfLifePeriod/list
// export const getPrescriptionHalfLifePeriodList = (params) => { // Related literatures
//     return ajax.get('/etcm/ingr/halfLifePeriod/list', params);
// };
// // 获取成分转运模式信息 /etcm/ingr/transportMode/list
// export const getPrescriptionTransportModeList = (params) => { // Related literatures
//     return ajax.get('/etcm/ingr/transportMode/list', params);
// };


//  Disease  -----------------------------
export const getDiseaseList = (params) => {
    return ajax.get('/etcm/disease/page', params);
};
export const getDiseaseSearchList = (params) => {
    return ajax.get('/etcm/index/disease', params);
};
export const getDiseaseBasic = (params) => { // Basic information
    return ajax.get('/etcm/disease/details', params);
};
export const downDiseaseBasic = (param) => {
    return ajax.post('/etcm/disease/details/download', param)
}

export const getDiseaseAssoIngr = (params) => { // Associated ingredient
    return ajax.get('/etcm/disease/ingredient', params);
};

export const downDiseaseAssIngre = (param) => {
    return ajax.post('/etcm/disease/ingr/download', param)
}

export const getDiseaseAssoHerb = (params) => { // Associated herb
    return ajax.get('/etcm/disease/herb', params);
};

export const downDiseaseAssHerb = (param) => {
    return ajax.post('/etcm/disease/herb/download', param)
}

export const getDiseaseAssoPres = (params) => { // Associated prescription
    return ajax.get('/etcm/disease/prescription', params);
};
export const dowmDiseaseAssPres = (param) => {
    return ajax.post('/etcm/disease/px/download', param)
}
export const downDiseaseSearch = (param) => {
    return ajax.post('/etcm/index/disease/download', param)
}
export const downDisease = (param) => {
    return ajax.post('/etcm/disease/download', param)
}
export const getTypeList  = (param) => {
    return ajax.get('/etcm/disease/type', param);
}
export const getDiseaseStatistic = (param) => {
    return ajax.get('/etcm/disease/statistics', param);
}



//  Herb  中草药库查询    -------------------------------
export const getHerbList = (params) => {
    return ajax.get('/etcm/herb/page', params);
};
// herb-search查询
export const getherbSearchList = (param) => {
    return ajax.get('/etcm/index/herb/page', param)
}
//herb-统计页下载
export const downHerb = (param) => {
    return ajax.post('/etcm/herb/download', param)
}
//herb-search下载
export const downHerbSearch = (param) => {
    return ajax.post('/etcm/index/herb/download', param)
}

//herb统计
export const getHerbStatistic = (param) => {
    return ajax.get('/etcm/herb/statistics', param)
}
//herb基本信息下载
export const downHerbDetail = (param) => {
    return ajax.post('/etcm/herb/download/details', param)
}
// 字典-中草药分类
// export const getHerbCatList = (params) => {
//     return ajax.get('/etcm/herb/cls/list', params);
// };
// 字典-中草药五味
export const getHerbFlavorList = (params) => {
    return ajax.get('/etcm/herb/flavor/list', params);
};
// 字典-中草药四气
export const getHerbPropertyList = (params) => {
    return ajax.get('/etcm/herb/property/list', params);
};
// 字典-中草药经脉
export const getHerbmeridiansList = (params) => {
    return ajax.get('/etcm/herb/meridians/list', params);
};
// 字典-中草药分类
export const getHerbSpeciesList = (params) => {
    return ajax.get('/etcm/herb/species/list', params);
};
// 中草药库详情
export const getHerbBasic = (params) => { // Basic information
    return ajax.get('/etcm/herb/details', params);
};
//herb-network
export const getHerbnetwork = (param) => {
    return ajax.get('/etcm/herb/network/statistics', param)
}
export const downHerbnetwork = (param) => {
    return ajax.post('/etcm/herb/network/download', param)
}
// Herb composition 
// export const getHerbCompIngr = (params) => { // Ingredient --TODO-2echart-
//     return ajax.get('/etcm/herb/xxxx', params);
// };
// 中草药构成: 相关成分查询
export const getHerbCompIngr = (params) => { // Ingredient
    return ajax.get('/etcm/herb/ingr/page', params);
};

//中草药成分统计
export const getHerbCompIngrStatistic = (params) => { // Ingredient
    return ajax.get('/etcm/herb/statistics/ingredient', params);
};
//herb 相关成分下载
export const downHerbIngredient = (param) => {
    return ajax.post('/etcm/herb/download/ingr', param);
}
//中草药taget统计 
export const getTargetStatistic = (param) => {
    return ajax.get('/etcm/herb/target/statistics', param);
}
// export const getHerbCompTarget = (params) => { // Target --TODO-1echart-
//     return ajax.get('/etcm/herb/xxxx', params);
// };
// 中草药构成: 成分相关靶向查询
export const getHerbCompTarget = (params) => { // Target
    return ajax.get('/etcm/herb/ingr/target/page', params);
};

//herb-target下载
export const downHerbTarget = (param) => {
    return ajax.post('/etcm/herb/download/ingr/target', param);
}
// 中草药组学信息：查询
export const getHerbRecoExpe = (params) => { // Experimental records
    return ajax.get('/etcm/herb/experimental/records/page', params);
};

export const downHerExperment = (param) => {
    return ajax.post('/etcm/herb/download/experimental/records', param);
}


export const getHerbOverall = (params) => { // Overall network  --TODO---图 
    return ajax.get('/etcm/herb/xxxx', params);
};
export const getHerbIngringrInteract = (params) => { // Ingredient-ingredient interactions  --TODO--switch-box图 
    return ajax.get('/etcm/herb/xxxx', params);
};
// 中草药组合用药关系：结合中草药查询
export const getHerbCombHerb = (params) => { // Combined herbs
    return ajax.get('/etcm/herb/combined/herbs/page', params);
};
// 中草药组合用药关系：相关的疾病查询
export const getHerbAssoDise = (params) => { // Associated diseases
    return ajax.get('/etcm/herb/associated/diseases/page', params);
};
// 中草药组合用药关系：相关文献查询
export const getHerbRelatedLite = (params) => { // Related literatures
    return ajax.get('/etcm/herb/treatise/page', params);
};
// 中草药：相关处方查询
export const getHerbRelatedPres = (params) => { // Related prescription
    return ajax.get('/etcm/herb/px/page', params);
};

export const downHerbPrescription = (param) => {
    return ajax.post('/etcm/herb/download/px', param)
}

export const downHerbCombin = (param) => {
    return ajax.post('/etcm/herb/download/combined/herbs', param)
}

export const downHerbDisease = (param) => {
    return ajax.post('/etcm/herb/download/associated/diseases', param)
}






//  Ingredient   ----------------------------------------
export const getIngredientList = (params) => {
    return ajax.get('/etcm/ingr/page', params);
};
//ingre的搜索查询
export const ingredientSearchList = (params) => {
    return ajax.get('/etcm/index/ingr/page', params);
};
export const getIngredientBasic = (params) => { // Basic information
    return ajax.get('/etcm/ingr/details', params);
};

export const downIngredientBasic = (params) => {
    return ajax.post('/etcm/ingr/download/details', params)
}

export const downIngredientSearch = (param) => {
    return ajax.post('/etcm/index/ingr/download', param)
}

export const downIngredient = (param) => {
    return ajax.post('/etcm/ingr/download', param)
}
// export const getIngredientCompTarget = (params) => { // CompTarget
//     return ajax.get('/etcm/ingr/details', params);
// };
// 成分构成：相关靶向查询
export const getIngredientCompTarget = (params) => { // CompTarget --TODO-1echart-
    return ajax.get('/etcm/ingr/target/page', params);
};
export const downIngreComTarget = (param) => {
    return ajax.post('/etcm/ingr/download/target', param)
}

export const getAdmetIngre = (param) => {
    return ajax.get('/etcm/ingr/admet/details', param)
}
export const getIngredientAdmet = (params) => { // Admet
    return ajax.get('/etcm/ingr/xxxx', params);
};
// 成分组学信息：查询
export const getIngredientRecoExpe = (params) => { // RecoExpe
    return ajax.get('/etcm/ingr/experimental/records/page', params);
};
// 成分组合用药关系：协同成分查询
export const getIngredientSyneIngr = (params) => { // LandSyneIngr
    return ajax.get('/etcm/ingr/synergistic/ingredients/page', params);
};
// 成分组合用药关系：相关的疾病查询
export const getIngredientAssoDise = (params) => { // LandAssoDise
    return ajax.get('/etcm/ingr/associated/diseases/page', params);
};
// 成分组合用药关系：相关文献查询
export const getIngredientRelatedLite = (params) => { // LandRelatedLite
    return ajax.get('/etcm/ingr/treatise/page', params);
};
// 成分：相关的处方查询
export const getIngredientRelatedPres = (params) => { // RelatedPres
    return ajax.get('/etcm/ingr/px/page', params);
};
// 成分：相关的中草药查询
export const getIngredientRelatedHerb = (params) => { // RelatedHerb
    return ajax.get('/etcm/ingr/herb/page', params);
};

export const getIngredientStatistic = (param) => {
    return ajax.get('/etcm/ingr/statistics', param);
}

export const getIngredientTargetStatistic = (param) => {
    return ajax.get('/etcm/ingr/target/statistics', param)
}

export const downIngreRelateHerb = (param) => {
    return ajax.post('/etcm/ingr/download/herb', param)
}

export const downIngreRelateIngre = (param) => {
    return ajax.post('/etcm/ingr/download/px', param)
}
//协同成分下载
export const downSynerIngre = (param) => {
    return ajax.post('/etcm/ingr/download/synergistic/ingredients', param)
}

//相关的疾病下载
export const downSynerDisease = (param) => {
    return ajax.post('/etcm/ingr/download/associated/diseases/page', param)
}

//组学信息下载-实验数据
export const downExperIngreRecords = (param) => {
    return ajax.post('/etcm/ingr/download/experimental/records', param)
}


//组合
export const getHerbherb = (param) => {
    return ajax.post('/etcm/Combin/herb/herb', param)
}
export const downHerbherbNetwork = (param) => {
    return ajax.post('/etcm/Combin/herb/herb/download', param)
}
export const getingreingrenetwork = (param) => {
    return ajax.post('/etcm/Combin/ingr/ingr', param)
}
export const downingreingreNetwork = (param) => {
    return ajax.post('/etcm/Combin/ingr/ingr/download', param)
}

export const getPreDiseaenetwork = (param) => {
    return ajax.post('/etcm/Combin/px/disease', param)
}
export const downPreDiseaNetwork = (param) => {
    return ajax.post('/etcm/Combin/px/disease/download', param)
}

export const getHerbDiseaenetwork = (param) => {
    return ajax.post('/etcm/Combin/herb/disease', param)
}
export const downHerbDiseaNetwork = (param) => {
    return ajax.post('/etcm/Combin/herb/disease/download', param)
}

export const getIngreDiseaenetwork = (param) => {
    return ajax.post('/etcm/Combin/ingr/disease', param)
}
export const downIngreDiseaNetwork = (param) => {
    return ajax.post('/etcm/Combin/ingr/disease/download', param)
}




//z组合table
export const prescNetworkTable = (param) => {
    return ajax.get('/etcm/prescription/network/page', param)
}
export const herbNetworkTable = (param) => {
    return ajax.get('/etcm/herb/network/page', param)
}

export const herbHerbNetworkTable = (param) => {
    return ajax.post('/etcm/Combin/herb/herb/page', param)
}

export const ingreingreNetworkTable = (param) => {
    return ajax.post('/etcm/Combin/ingr/ingr/page', param)
}

export const precDiseaNetworkTable = (param) => {
    return ajax.post('/etcm/Combin/px/disease/page', param)
}

export const herbDiseaNetworkTable = (param) => {
    return ajax.post('/etcm/Combin/herb/disease/page', param)
}

export const ingreDiseaNetworkTable = (param) => {
    return ajax.post('/etcm/Combin/ingr/disease/page', param)
}

//admet
export const getAdmetpage = (param) => {
    return ajax.get('/etcm/admet/page', param)
}
export const getAdmetpageStatistic = (param) => {
    return ajax.get('/etcm/admet/statistics', param)
}
export const downAdmetpage = (param) => {
    return ajax.post('/etcm/admet/download', param)
}

//联系我们
export const getconstractUs = (param) => {
    return ajax.get('/etcm/ui/el/us', param)
}

//首页
export const getsearchDiseTotal = (param) => {
    return ajax.get('/etcm/index/statistics/disease', param)
}
export const getsearchHerbTotal = (param) => {
    return ajax.get('/etcm/index/statistics/herb', param)
}

export const getsearchIngrTotal = (param) => {
    return ajax.get('/etcm/index/statistics/ingr', param)
}

export const getsearchPrescrTotal = (param) => {
    return ajax.get('/etcm/index/statistics/px', param)
}

//组合查询条件
export const diseaseAll = (param) => {
    return ajax.get('/etcm/Combin/search/disease', param)
}
export const herbAll = (param) => {
    return ajax.get('/etcm/Combin/search/herb', param)
}
export const ingrAll = (param) => {
    return ajax.get('/etcm/Combin/search/ingr', param)
}
export const prescrAll = (param) => {
    return ajax.get('/etcm/Combin/search/px', param)
}


// 组学
export const volcanoMap = (param) => {
    return ajax.get('/etcm/ingr/volcano/map', param)
}

export const diagMap = (param) => {
    return ajax.get('/etcm/ingr/scatter/diagram', param)
}

export const chartMap = (param) => {
    return ajax.get('/etcm/ingr/bar/chart', param)
}

